<template>
  <div class="goodsdesc_container">
      <h3>{{goodsdesc.title}} </h3>
      <hr>
      <div v-html="goodsdesc.content">
      </div>
  </div>
</template>

<script>
export default {

  data () {
    return {
        goodsdesc:{},
    }
  },

  methods: {
      getGoodsDescent(){
          this.$http.get('http://www.liulongbin.top:3005/api/goods/getdesc/'+this.$route.params.id).then(result=>{
              if(result.body.status == 0){
                  this.goodsdesc = result.body.message[0];
              }
          })
      }
  },

  created () {
      this.getGoodsDescent()
  }
}
</script>

<style lang='less'>
.goodsdesc_container{
    padding: 10px;
    text-align: center;
    h3{
        font-size: 16px;
        margin: 10px;
    }
    img{
        width: 100%;
    }
}
</style>
